﻿@using DocProcessingWorkflow.HtmlHelpers
@using Microsoft.AspNet.Identity
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>@ViewBag.Title - BNYM Bravura Output Solution</title>
    <!-- Bootstrap -->
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <div class="container-fluid">
        <header class="row">
            <div class="col-md-2 col-sm-2 col-xs-2 logo">
                <h1>@Html.ActionImage(@Url.Action("Index","Home",new{}),@Url.Content("~/Content/img/assets/logo.png"),"BBOS","","")</h1>
            </div>
            <div class="col-md-10 col-sm-10 col-xs-10">
                @if (HttpContext.Current.User.Identity.IsAuthenticated)
                {
                    @Html.Action("Summary", "Account")
                }
        <nav class="navbar navbar-default navbar-static-top" role="navigation">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <div class="navbar-collapse collapse">
                @Html.Partial("_LoginPartial")
            </div>
        </nav>
                <div class="subnav">
                    @*@Html.Action("Summary", "Account")*@
                </div>
            </div>
        </header>
        <div class="main">
            @RenderBody()
    <div class="modalLoading"></div>
        </div>
        @Html.Hidden(HttpContext.Current.Request.ApplicationPath, HttpContext.Current.Request.ApplicationPath, new { ID = "SiteName" })
   @Html.Partial("_Session")
    </div>

    @Scripts.Render("~/bundles/jquery")
	  @Scripts.Render("~/bundles/Knockout")
   @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/Scripts/App.js")
   @Scripts.Render("~/Scripts/Utility/utility.js")
   @Scripts.Render("~/Scripts/Session/idleChecker.js")
  @Scripts.Render("~/Scripts/Session/idleManagement.js")
    @Scripts.Render("~/Scripts/Session/Session.js")
    @Scripts.Render("~/Scripts/Environment/environment.js")
    @RenderSection("scripts", required: false)
	<script type="text/javascript">
	    $(document).ready(function () {
	        DocProcessing.rootPath = '@Url.Content("~")';
      @RenderSection("ko_apply", required: false)
	    });
    </script>
</body>
</html>
